/************************************************************
   Copyright 2008 Abhinav Pobbati

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*************************************************************/

#pragma once

#pragma unmanaged
#include <Animation/Animation/hkaAnimationContainer.h>
#include <Animation/Animation/hkaAnimation.h>
#include <Animation/Animation/Animation/hkaAnimationBinding.h>
#include <Animation/Animation/Animation/hkaAnnotationTrack.h>
#include <Animation/Animation/Animation/hkaSkeletalAnimation.h>
#include <Animation/Animation/Animation/DeltaCompressed/hkaDeltaCompressedSkeletalAnimation.h>
#include <Animation/Animation/Animation/Interleaved/hkaInterleavedSkeletalAnimation.h>
#include <Animation/Animation/Animation/Mirrored/hkaMirroredSkeletalAnimation.h>
#include <Animation/Animation/Animation/Mirrored/hkaMirroredSkeleton.h>
#include <Animation/Animation/Animation/SplineCompressed/hkaSplineSkeletalAnimation.h>
#include <Animation/Animation/Animation/Util/hkaTrackAnalysis.h>
#include <Animation/Animation/Animation/WaveletCompressed/hkaWaveletSkeletalAnimation.h>
#pragma managed

namespace Havok4Xna {
	namespace Animation {
		public ref class HkaAnimationBinding : public INativeReference {
		public:
			enum class BlendHint : int {
				Normal = hkaAnimationBinding::NORMAL,
				Additive = hkaAnimationBinding::ADDITIVE
			};

		internal:
			HK_CLASS_INTERNALS(HkaAnimationBinding, hkaAnimationBinding)
		};

		public ref class HkaAnimationContainer : public INativeReference {
		internal:
			HK_CLASS_INTERNALS(HkaAnimationContainer, hkaAnimationContainer)
		};

		public ref class HkaAnnotationTrack : public INativeReference {
		public:
			ref class Annotation sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(Annotation, hkaAnnotationTrack::Annotation)
			};

		internal:
			HK_CLASS_INTERNALS(HkaAnnotationTrack, hkaAnnotationTrack)
		};

		public ref class HkaSkeletalAnimation : public INativeReference {
		internal:
			HK_CLASS_INTERNALS(HkaSkeletalAnimation, hkaSkeletalAnimation)
		};

		public ref class HkaDeltaCompressedSkeletalAnimation : public HkaSkeletalAnimation {
		public:
			ref class CompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(CompressionParams, hkaDeltaCompressedSkeletalAnimation::CompressionParams)
			};

			ref class PerTrackCompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(PerTrackCompressionParams, hkaDeltaCompressedSkeletalAnimation::PerTrackCompressionParams)
			};

		internal:
			HK_DERIVED_CLASS_INTERNALS(HkaDeltaCompressedSkeletalAnimation, hkaDeltaCompressedSkeletalAnimation, HkaSkeletalAnimation)
		};

		public ref class HkaInterleavedSkeletalAnimation : public HkaSkeletalAnimation {
		internal:
			HK_DERIVED_CLASS_INTERNALS(HkaInterleavedSkeletalAnimation, hkaInterleavedSkeletalAnimation, HkaSkeletalAnimation)
		};

		public ref class HkaMirroredSkeletalAnimation : public HkaSkeletalAnimation {
		internal:
			HK_DERIVED_CLASS_INTERNALS(HkaMirroredSkeletalAnimation, hkaMirroredSkeletalAnimation, HkaSkeletalAnimation)
		};

		public ref class HkaMirroredSkeleton : public INativeReference {
		internal:
			HK_CLASS_INTERNALS(HkaMirroredSkeleton, hkaMirroredSkeleton)
		};

		public ref class HkaSplineSkeletalAnimation : public HkaSkeletalAnimation {
		public:
			ref class PerTrackCompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(PerTrackCompressionParams, hkaSplineSkeletalAnimation::PerTrackCompressionParams)
			};

			ref class TrackCompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(TrackCompressionParams, hkaSplineSkeletalAnimation::TrackCompressionParams)
			};

		internal:
			HK_DERIVED_CLASS_INTERNALS(HkaSplineSkeletalAnimation, hkaSplineSkeletalAnimation, HkaSkeletalAnimation)
		};

		public ref class HkaTrackAnalysis abstract sealed {
		public:
			static ref class AnalysisInput sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(AnalysisInput, hkaTrackAnalysis::AnalysisInput)
			};

			static ref class PerTransformTrackAnalysisInput sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(PerTransformTrackAnalysisInput, hkaTrackAnalysis::PerTransformTrackAnalysisInput)
			};

			static ref class PerFloatTrackAnalysisInput sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(PerFloatTrackAnalysisInput, hkaTrackAnalysis::PerFloatTrackAnalysisInput)
			};

			static ref class AnalysisStats sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(AnalysisStats, hkaTrackAnalysis::AnalysisStats)
			};

			static ref class AnalysisSplit sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(AnalysisSplit, hkaTrackAnalysis::AnalysisSplit)
			};

			static ref class AnalysisCompose sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(AnalysisCompose, hkaTrackAnalysis::AnalysisCompose)
			};

			enum class TrackType : int {
				Dynamic = hkaTrackAnalysis::HK_TRACK_DYNAMIC,
				Static = hkaTrackAnalysis::HK_TRACK_STATIC,
				Clear = hkaTrackAnalysis::HK_TRACK_CLEAR,
			};
		};

		public ref class HkaWaveletSkeletalAnimation : public HkaSkeletalAnimation {
		public:
			ref class CompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(CompressionParams, hkaWaveletSkeletalAnimation::CompressionParams)
			};

			ref class PerTrackCompressionParams sealed : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(PerTrackCompressionParams, hkaWaveletSkeletalAnimation::PerTrackCompressionParams)
			};

		internal:
			HK_DERIVED_CLASS_INTERNALS(HkaWaveletSkeletalAnimation, hkaWaveletSkeletalAnimation, HkaSkeletalAnimation)
		};
	}
}
